package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
public class Recruit extends BaseDomain {
    public static final int STATE_NORMAL = 0;   //未审批
    public static final int STATE_QUIT = 1; //已审批

    private String staff_Id;  //申请人

    private String plan;    //计划名称

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date draftTime; //制定时间

    private Integer examineState=STATE_NORMAL;   //审批状态

    private DictionaryItem planType;  //计划类别

    private Department dept;   //申请部门

    private String examine_Id;   //审批人

    //招聘明细
    private List<RecruitItem> recruitItems = new ArrayList<>();

}